<template>
  <el-config-provider :locale="locale">
    <router-view/>
  </el-config-provider>
</template>
<script>
import {defineComponent, reactive, toRefs} from 'vue';
import {ElConfigProvider} from 'element-plus';
//import zhCn from 'element-plus/lib/locale/lang/zh-cn';
import zhCn from 'element-plus/es/locale/lang/zh-cn';

export default defineComponent({
  components: {
    [ElConfigProvider.name]: ElConfigProvider,
  },
  setup() {
    let locale = zhCn;
    const state = reactive({});
    return {
      ...toRefs(state),
      locale,
    };
  }
});
</script>
<style lang="scss">
@import './assets/font/iconfont.css';

* {
  margin: 0;
  padding: 0;
  font-size: 12px;
}
</style>
